<%@ Page Language="C#" MasterPageFile="~/MainMaster.master" AutoEventWireup="true" CodeFile="TestingSearchDoc.aspx.cs" Inherits="TestingSearchDoc" Title="Untitled Page" %>

<%@ Register Src="~/includes/EnhancedFeaturedDoc.ascx" TagName="EnhancedFeaturedDoc"
    TagPrefix="uc4" %>
<%@ Register Assembly="Manager" Namespace="PagingControl" TagPrefix="cc1" %>
<%@ Register Src="~/includes/PremiumFeaturedDoc.ascx" TagName="PremiumFeaturedDoc" TagPrefix="uc3" %>
<%@ Register Src="~/includes/showRate.ascx" TagName="showRate" TagPrefix="uc2" %>
<%@ Register Src="~/includes/DoctorMenu.ascx" TagName="DoctorMenu" TagPrefix="uc1" %>
<%@MasterType VirtualPath="~/MainMaster.master" %>
<asp:Content ID="MainContent" ContentPlaceHolderID="MainTable" runat="server" Visible ="true">

<table width="549"  border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td class="bodytxt" style="width: 572px">
            
            <table width="549" border="0" cellpadding="0" cellspacing="0" bgcolor="#f1f1f1">
              <tr>
                <td style="width:10px; height: 7px;" class="bodytxt" align="center"><img src="images/grey-curver-inside-left.gif" alt="" width="9" height="8" /></td>
                <td class="bodytxt" style="border-top:1px solid #E0E0E0; width:531px; height: 7px;" align="center"><img src="images/spacer.gif" alt="" width="8" height="1" /></td>
                <td style="width:9px; height: 7px;" class="bodytxt" align="center"><img src="images/grey-curver-inside-right.gif" alt="" width="9" height="8" /></td>
              </tr>
              <tr>
                <td class="bodytxt" style="border-left:1px solid #E0E0E0; width: 10px;"><img src="images/spacer.gif" alt="" width="8" height="1" /></td>
                <td class="bodytxt" align="center">
                
                 <table width="514" border="0" align="center" cellpadding="0" cellspacing="0">
                     <tr>
                         <td align="center">
                             <uc1:DoctorMenu ID="DoctorMenu1" runat="server" />
                         </td>
                     </tr>
                     <%if(Session["pageFromOrAction"].ToString().Equals("RateDoctors")){%>
                     <tr>
                     <td align="left" style="height: 38px">
                         <span style="color: #0014a6"><strong>Helpful Hint:</strong></span> Please click
                         on the doctor you would like to rate.<br />
                     </td>
                     </tr>
                     <%} %>
                  <tr><td align="center" ></td></tr>
                <tr>
                <td align="center" class="bodytxt" style="width: 100%;"  id="td_fealinks" runat="server">
                <table width="100%" cellpadding="2" cellspacing="2" border="0">
                
                <tr><td width="100%" >
                    </td></tr>
                </table>
                 </td>
                </tr>
                <tr><td>
                    &nbsp;</td></tr>
               
                     <tr>
                         <td align="left" style="height: 13px" >
                             &nbsp;</td>
                     </tr>
                 <tr>
                <td><asp:Label id="lblMsg" runat="server"></asp:Label></td>
                </tr>
                     <tr>
                         <td align="left" style="height: 13px">
                             <asp:Literal ID="litPaging" runat="server"></asp:Literal></td>
                     </tr>
                  <tr>
                    <td align="center" class="bodytxt" style="width: 100%; height: 141px;">                        
                        <asp:GridView ID="grdSearch" runat="server" AutoGenerateColumns="False"
                            BorderStyle="None" BorderWidth="0px" CellPadding="5" CssClass="normalgrey_12"
                            DataKeyNames="rating" OnPageIndexChanging="grdSearch_PageIndexChanging" OnRowDataBound="grdSearch_RowDataBound"
                            ShowFooter="True" Width="100%" OnRowCreated="grdSearch_RowCreated" GridLines="None">                                                       
                            <PagerSettings FirstPageText="First" LastPageText="Last" Mode="NextPrevious"
                                NextPageText="Next" Position="TopAndBottom" PreviousPageText="Previous" />
                            <FooterStyle HorizontalAlign="Left" />
                            <Columns>
                                <asp:TemplateField HeaderText="Name">
                                    <HeaderStyle HorizontalAlign="Left" />
                                    <ItemStyle Width="100px"  VerticalAlign="Top" />
                                    <ItemTemplate >                                    
                                        <%if (frompage.ToString() == "RateDoctors")
                                          {%>
                                        <a class="link-result" href='<%=Session["strHttp"]%>doctor/RateDoctors.aspx?id=<%# Eval("Id") %>'
                                            title="Show Details"><b><u>
                                                <%# Eval("docname") %></u>
                                            </b>
                                            </a>
                                        <%}
                                          else
                                          { %>
                                            <a class="link-result" href='<%=Session["strHttp"]%>doctor/DoctorsDetails.aspx?id=<%# Eval("Id") %>'
                                                title="Show Details"><b><u>
                                                    <%# Eval("docname") %></u>
                                                </b></a>
                                       <%} %>
                                    </ItemTemplate>
                               
                           
                                </asp:TemplateField>
                                <asp:TemplateField>
                                <ItemStyle Width="10px" />
                                <ItemTemplate>                                
                                </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Address">
                                    <HeaderStyle HorizontalAlign="Left" />
                                    <ItemStyle Width="150px" VerticalAlign="Top" />
                                    <ItemTemplate>
                                        <%#Eval("address")%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Specialty / Subspecialty">
                                    <HeaderStyle HorizontalAlign="Left" />
                                    <ItemStyle VerticalAlign="Top" />
                                    <ItemTemplate>
                                        <%#Eval("speciality")%>
                                    </ItemTemplate>
                                   
                                </asp:TemplateField>
                                <asp:BoundField DataField="distance"  HeaderText="Distance (miles)" >                               
                                    <ItemStyle Font-Bold="True" HorizontalAlign="Center" Wrap="False"  />                                    
                                 </asp:BoundField>
                                  <asp:BoundField DataField="rating" HeaderText="Overall Rating" >
                                    <ItemStyle Font-Bold="True" ForeColor="Blue" Wrap="False" />                                    
                                </asp:BoundField>
                               
                               
                                <asp:TemplateField>
                                    <HeaderStyle HorizontalAlign="Left" />
                                    <ItemStyle VerticalAlign="Top" />
                                    <ItemTemplate>                                        
                                        </td></tr><tr>
                                        </tr>
                                            <td colspan="6" style="background-color: White">
                                            </td>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <RowStyle HorizontalAlign="Left" />
                            <PagerStyle BorderStyle="None" HorizontalAlign="Right" VerticalAlign="Top" />
                            <HeaderStyle BackColor="Lavender" />
                        </asp:GridView>
                        <cc1:paging id="cntPaging" runat="server" bindtocontrol="grdSearch" control_type="GridView"
                            orderby="fname" pagercount="10" pagesize="10" resultslocation="Bottom" showfirst="False"
                            showlast="False" storedprocedurename="TestingqueryResult"></cc1:paging>
                       </td>
                       </tr>
                       <!-- custom paging -->
                                                           <tr><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr>

                                            <tr>
                                                    <td align="right">
                                                        &nbsp;</td>
                                            </tr>
                       <tr>
                        <td align="left"><asp:Literal ID="litPagingBelow" runat="server"></asp:Literal></td>
                       </tr>
                        <tr>
                         <td>
                             
                         </td>
                       </tr>
                       
                       <tr><td>
                        <asp:Button ID="btnBackToSearch" runat="server" OnClick="btnBackToSearch_Click" Text="Back To Search" />
                        </td>
                        
                  </tr>
                
                  <tr>
                    <td align="left" class="bodytxt" style="width: 516px; height: 8px;"><img src="images/spacer.gif" alt="" width="8" height="8" /></td>
                  </tr>
                </table>
                    <span style="font-size: 8pt; line-height: 14pt; font-family: Verdana">
                        <asp:Label ID="Label1" runat="server" BorderColor="#FF8000" BorderStyle="Solid" BorderWidth="1px"
                            Text="&nbsp;&nbsp;Do not see your doctor?  <a href='mailto:missingdoc@findadoc.com'>Click here</a> to submit your doctor to Findadoc.com&nbsp;&nbsp;"></asp:Label></span></td>
                <td class="bodytxt" style="border-right:1px solid #E0E0E0;"><img src="images/spacer.gif" alt="" width="8" height="1" /></td>
              </tr>
              
              <tr>
                <td class="bodytxt" style="width: 10px"><img src="images/grey-curver-inside-left-bot.gif" alt="" width="9" height="9" /></td>
                <td class="bodytxt" style="border-bottom:1px solid #E0E0E0;"><img src="images/spacer.gif" alt="" width="8" height="1" /></td>
                <td class="bodytxt"><img src="images/grey-curver-inside-right-bo.gif" alt="" width="9" height="9" /></td>
              </tr>
            </table>               
            
            </td>
          </tr>
        </table>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="InnerRight" runat="server" Visible ="true" >
<table  width="168"  border="0" cellspacing="0" cellpadding="0"  bgcolor="#f1f1f1" align="center" id="tbl_feat" runat="server" >
      <tr>
                <td style="width:10px; height: 7px;" class="bodytxt" align="center"><img src="images/grey-curver-inside-left.gif" alt="" width="9" height="8" /></td>
                <td class="bodytxt" style="border-top:1px solid #E0E0E0; width:531px; height: 7px;" align="center"><img src="images/spacer.gif" alt="" width="8" height="1" /></td>
                <td style="width:9px; height: 7px;" class="bodytxt" align="center"><img src="images/grey-curver-inside-right.gif" alt="" width="9" height="8" /></td>
              </tr>
              <tr>
                <td class="bodytxt" style="border-left:1px solid #E0E0E0; width: 10px;"><img src="images/spacer.gif" alt="" width="8" height="1" /></td>
                <td class="bodytxt" align="center">
                 <table width="97%" border="0" cellpadding="0" cellspacing="0">
                
<tr><td  align="center" width="100%"><asp:Label ID="lbl_FeaMsg" runat="server"></asp:Label></td></tr>
<tr><td align="right" style="height: 19px"><asp:Label id="lblMsgTop3" runat="server"></asp:Label></td></tr>
 <tr>
            <td>
               
                
                <asp:GridView ID="StandardFeaDoc" runat="server" AutoGenerateColumns="False" ShowHeader="False"
        Width="100%" BorderWidth="0" AllowPaging="True" PageSize="7" GridLines="None">
        <Columns>
     <asp:TemplateField>
          <ItemStyle Width="100%"/>
             <ItemTemplate >                                    
                  <%if (frompage.ToString() == "RateDoctors")
                    {%>
                     <a class="link-result" href='<%=Session["strHttp"]%>doctor/RateDoctors.aspx?id=<%# Eval("Id") %>'
                      title="Show Details"><b><u><%# Eval("docname") %></u></b></a>
                    <%}
                  else
                    { %>
                      <a class="link-result" href='<%=Session["strHttp"]%>doctor/DoctorsDetails.aspx?id=<%# Eval("Id") %>'
                       title="Show Details"><b><u><%# Eval("docname") %></u>
                     </b></a>
                     <%} 
                  %><br />
               <%#Eval("speciality")%> 
           </ItemTemplate>
     </asp:TemplateField>
  <asp:TemplateField>
 
                                    <ItemTemplate>                                        
                                        </td></tr><tr>
                                        </tr>
                                            <td colspan="6" style="background-color: White">
                                            </td>
                                    </ItemTemplate>
  </asp:TemplateField>
</Columns>
<RowStyle HorizontalAlign="Left" />
        <PagerStyle ForeColor="#F1F1F1" />
    </asp:GridView>

            </td>
    </tr>
</table>
 </td>
                <td class="bodytxt" style="border-right:1px solid #E0E0E0;"><img src="images/spacer.gif" alt="" width="8" height="1" /></td>
              </tr>
              
              <tr>
                <td class="bodytxt" style="width: 10px"><img src="images/grey-curver-inside-left-bot.gif" alt="" width="9" height="9" /></td>
                <td class="bodytxt" style="border-bottom:1px solid #E0E0E0;"><img src="images/spacer.gif" alt="" width="8" height="1" /></td>
                <td class="bodytxt"><img src="images/grey-curver-inside-right-bo.gif" alt="" width="9" height="9" /></td>
              </tr>
             
</table>
 
 
 
 

 
 <% if(tbl_feat.Visible==false)
    {
  %>
 
   <table width="168"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>
    <asp:Image ToolTip="Why Join Find a Doc" runat="server" ID="imgfindoc" width="168" height="41" /></td>
   
  </tr>
  <tr>
    <td align="center" class="border-orange">
    <table style="width:142px"  border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td colspan="2" align="left" class="bodytxt">&nbsp;</td>
        </tr>
        <tr>
          <td colspan="2" align="left" class="bodytxt"><a href="#" title="Find Top Doctors"><span class="darkblue-text">Find Top Doctors</span></a><br />
            Search and compare ratings for over 725,000 physicians.<br />
            <br />
            <a href="#" title="Rate Your Doctor"><span class="darkblue-text">Rate Your Doctor</span></a><br />
            Rate past and present Doctors on Bedside Manner, Wait, Office Staff, Clinical Acumen, Patient Confidence, and Overall Impression.<br />
            <br />
            <a href="#"><span class="darkblue-text">Boards &amp; Blogs</span></a><br />
            Share your experience with fellow patients.</td>
        </tr>
    </table></td>
  </tr>
  <tr>
    <td>
    <asp:Image  runat="server" ID="Imgbot" width="168" height="17" /></td>    
  </tr>
  <tr>
    <td class="bodytxt">&nbsp;</td>
  </tr>
  <tr>
    <td></td>   
      &nbsp;</tr>
</table>
 <%
 
 }
  %>

</asp:Content>